package com.integertest;

/**
 * @Author: fxy
 * @Date: 2022/04/02/15:01
 * @Description:
 */
public class Test1 {
    public static void main(String[] args) {
        Integer i = 0;
        System.out.println(System.identityHashCode(i));
        Test1 test1 = new Test1();
        test1.t1(i);
        System.out.println(i);
        System.out.println(System.identityHashCode(i));
    }

    public void t1(Integer i){
        System.out.println(System.identityHashCode(i));
        i++;
        System.out.println(System.identityHashCode(i));
        System.out.println(i);
    }
}
